import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import rootReducer from 'es6!./reducers/index'
import App from 'es6!./components/App'

const store = createStore(rootReducer)

export function init() {
	render(
	  <Provider store={store}>
	    <App />
	  </Provider>,
	  document.getElementById('root')
	)
}
